<?php
namespace BP\DTS;
require_once("java/util/ArrayList.php");
class FFs extends ArrayList {
	protected static $serialVersionUID;	// long
	public static function __staticinit() { // static class members
		self::$serialVersionUID = 1;
	}
	public function getPKCount () 
	{
		$i = 0;
		foreach ($this as $ff) 		{
			if ($ff->IsPK)
			{
				++$i;
			}
		}
		if (($i == 0))
		{
			throw new \RuntimeException("没有设置PK. 请检查map 错误.");
		}
		return $i;
	}
	public static function constructor__ () 
	{
		$me = new self();
		return $me;
	}
	public function Add_FF ($ff) // [FF ff]
	{
		$this->add($ff);
	}
	public function Add_String_String_I_b ($fromF, $toF, $dataType, $isPk) // [String fromF, String toF, int dataType, boolean isPk]
	{
			/* match: FF */
		$this->Add_FF(FF::constructor__String_String_I_b($fromF, $toF, $dataType, $isPk));
	}
	public function getItem ($index) // [int index]
	{
		return $this->get($index);
	}
}
FFs::__staticinit(); // initialize static vars for this class on load
?>
